home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 2285 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  28.9 KB

  1. Path: conch.aa.msen.com!not-for-mail
  2. From: brain@mail.msen.com (Jim Brain)
  3. Newsgroups: comp.sys.cbm
  4. Subject: COMP.SYS.CBM: General FAQ, v3.1 Part 7/9
  5. Supersedes: <cbmmainfaq70196@msen.com>
  6. Followup-To: comp.sys.cbm
  7. Date: 8 Feb 1996 19:13:54 -0500
  8. Organization: Brain Innovations, Inc.
  9. Sender: brain@msen.com
  10. Approved: news-answers-request@MIT.EDU
  11. Expires: 05 Mar 1996
  12. Message-ID: <cbmmainfaq70296@msen.com>
  13. Reply-To: brain@mail.msen.com
  14. NNTP-Posting-Host: conch.aa.msen.com
  15. Summary: This posting contains answers to questions that commonly surface in
  16.          comp.sys.cbm.  This posting will tell you enough to get your
  17.          computer connected to a network, fixed, and/or enhanced.  This file
  18.          should be read by new users of comp.sys.cbm before posting to the
  19.          group.  It should also be proofread by users who are currently
  20.          active in comp.sys.cbm.
  21. Keywords: CBM FAQ Help List C64 C128 VIC Modem
  22. X-URL: http://www.msen.com/~brain/
  23.  
  24.  
  25. X-Posted-By: YPost, version 0.07.B1109
  26.  
  27.  
  28. Archive-name: cbm-main-faq.3.1.p7
  29. Comp-answers-archive-name: commodore/main-faq/part7
  30. News-answers-archive-name: commodore/main-faq/part7
  31. Comp-sys-cbm-archive-name: main-faq/part7
  32. Version: 3.1
  33. Last-modified: 1996/02/08
  34.              
  35.  
  36.   ---------------------------------------------------------------------------
  37.   
  38.   Table of Contents (for this file)
  39.   ---------------------------------
  40.  
  41.   10.  Emulators
  42.   10.1.  What is an emulator?
  43.   10.2.  What platforms do 64 emulators exist on?
  44.   10.3.  What platforms do 128 emulators exist on?
  45.   10.4.  Are any other Commodore computers emulated?
  46.  
  47.   11.  Troubleshooting
  48.   11.1.  What do I do for my ill disk drive?
  49.   11.2.  What do I do for my ill computer?
  50.   11.2.1.  What do I do for my ill Commodore 64?
  51.   11.2.2.  What do I do for my ill Commodore 128?
  52.   11.3.  What do I do for my ill keyboard?
  53.   
  54.   12.  Modifications and Cabling
  55.   12.1.  How can you alter which side a 1571 reads from?
  56.   12.2.  How do I open a C128 power supply?
  57.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  58.   12.4.  How do I build a simple RS-232 interface cable?
  59.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  60.   12.6.  How can I determine how much VDC video memory is in my C128?
  61.   12.7.  How do I build a GEOCable interface?
  62. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  63.   
  64.   ---------------------------------------------------------------------------
  65.  
  66.  
  67.   10.  Emulators
  68.   
  69.   As time moves on, people move to other computer systems, for business resons
  70.   or otherwise.  However, many still long to play Commodore games, use 
  71.   Commodore software, and enjoy Commodore demos.  Thus, emulators were born
  72.   to bring the non-Commodore computer owner the enjoyment of owning a
  73.   Commodore.
  74.   
  75.     
  76.   10.1.  What is an emulator?
  77.   
  78.   An emulator is a piece of software that runs on a given platform and
  79.   emulates, or mimics, the operation of another machine.  When the
  80.   emulator loads up a program, the programs runs as though it were running
  81.   on the emulated platform.
  82.  
  83. | For more information on emulators and their use, please see The Commodore 
  84. | emulator FAQ, maintained by Ken Gifford  (tsrken@voicenet.com).  It 
  85. | can also be found on Jim Brain's MAILSERV server (See Section 6.5.2 for more
  86. | information).
  87.   
  88.   For those with WWW browsers, the CBM Emulation FAQ is at:
  89.  
  90. | http://www.hut.fi/~msmakela/cbm/faq/
  91.                           
  92.   
  93.   10.2.  What platforms do 64 emulators exist on?
  94.   
  95.   64 emulators exist on the following machines:
  96.   
  97.   Amiga
  98.   IBM
  99.   Atari ST
  100.   Macintosh
  101.   UNIX
  102.   
  103.   
  104.   10.3.  What platforms do 128 emulators exist on?
  105.   
  106.   There is a very basic Commodore 128 emulator bundled available for the 
  107.   UNIX platform under X.  It is bundled with X64.
  108.  
  109.   
  110.   10.4.  Are any other Commodore computers emulated?
  111.   
  112.   There is a commodore product called the PET emulator that remaps a
  113.   Commodore 64 to emulate a PET 40 column unit (i.e. PET 4032).  You can
  114.   run this program on a C64 to emulate a PET, or you can run this program
  115. | on a 64 emulator to emulate a PET on an IBM, for example.  As for VIC-20
  116. | emualtors, one exists for the Amiga, and there is a program similar to the
  117. | PET Emulator that allows a C64 to emulate a VIC-20.
  118.  
  119.   Although not necessarily a different Commodore computer, there is a
  120.   GEOS emulator in the works.  It is called GEOS Warp v1.0 and information
  121.   is available at http://stud1.tuwien.ac.at/~e9426444/geoswarp/index.html.
  122.   A version for the Apple PowerMac is in the alpha stage, and support for
  123.   a PC version.  Plans for a UNIX/X11 version are still unclear.  The author
  124.   is Andreas Varga, and can be contacted at e9426444@stud1.tuwien.ac.at.
  125.  
  126.  
  127.   11.  Troubleshooting
  128.   
  129.   
  130.   11.1.  What do I do for my ill disk drive?
  131.  
  132.   If the drive spins and the LEDs are off:
  133.   
  134.   At the back of the 1541 circuit board are two bridge rectifiers - stout
  135.   epoxy packages with 4 leads each. The innermost one is defective
  136.  
  137.   If both LEDs are dim:
  138.   
  139.   The 5VDC regulator is bad.
  140.   
  141.   If both LEDS are on:
  142.   
  143.   Drive did not make it through the power-on reset sequence.  Kernal ROM
  144.   (901229-05) is susepct, as is (in order of expectation):  VIA (6522), 
  145.   CPU (6502), RAM (6116 or equivalent), or a "glue" chip in the reset logic
  146.  
  147.   If your drive won't even accept input from the computer, and the drive
  148.   light is making some blinking pattern, then the drive may be telling you
  149.   what is wrong.
  150.  
  151.   No Blink       Kernal (E000-FFFF) ROM or 6522 VIA Failure
  152.   One Blink      6116 RAM Failure
  153.   Two Blinks     Possible Zero Page RAM Failure
  154.   Three Blinks   DOS (C000-CFFF) ROM Failure
  155.   Four Blinks    DOS (C000-CFFF) ROM Failure
  156.   Five Blinks    6116 RAM Failure
  157.   Six Blinks     6116 RAM Failure
  158.   Seven Blinks   6116 RAM Failure
  159.   Eight Blinks   6116 RAM Failure
  160.  
  161.   1541
  162.  
  163.   The most common problem facing the 1541 disk drive is alignment.  If your
  164.   1541 has trouble reading commercial disks, or reading disks written some
  165.   time ago, but has less trouble reading recently written disks, chances are
  166.   that your 1541 is out of alignment.  C= service centers will typically align
  167.   a 1541 for anywhere from $20 to $45.  There are also 1541 alignment
  168.   programs, (e.g. Free Spirit's "1541/71 Alignment System") which allow you
  169.   to align a 1541 yourself.  There are those who claim that this does not
  170.   produce good results, but there are others who claim to have had
  171.   satisfactory results with these programs.  There were a couple of articles
  172.   in COMPUTE Gazette and I think RUN on how to do this.  The real problem is
  173.   mechanical in nature and can be over come.  Other products are PHYSICAL
  174.   EXAM 1541 and 1571 versions.
  175.  
  176.   1571
  177.  
  178.   The C=1571 drive is normally a double sided drive.  However, it can also
  179.   emulate a 1541 and read single sided disks.  Some of the earlier 1571's had
  180.   older system chips (ROMs) which caused a couple of problems.  One, these
  181.   older drives were typically very slow when writing to the back side of a
  182.   disk.  Two, it would take these drives ~30 seconds to go into single sided
  183.   mode.  To check your ROM version, read the error channel of the disk drive
  184.   right after startup.  On the 128, just PRINT DS$.  On the 64, use:
  185.  
  186.   10 open15,8,15:input#15,a,a$,b,c:close15:printa,a$,b,c
  187.  
  188. | Run the program; if the message says v3.1, you have the newer ROM.
  189. | If it has a version 3.0 or older, you have the older ROM.
  190.  
  191.   One problem that might occur is not having the head close enough to the disk
  192.   as required because of the light tension of the spring that pulls the head
  193.   down.  Somewhere I remember that there was supposed to be a replacement
  194.   part.  However, one of the alignment programs suggesting using pennies to
  195.   weight it down and lo and behold it started working.
  196.  
  197.   1581
  198.  
  199.   The C=1581 drive is a 3.5" drive that uses DSDD 800K disks.  It is
  200.   compatible with both the C64 and C128, although some programs will not work
  201.   correctly with the 1581.
  202.  
  203.   A small number of 1581's were shipped with an early version of a controller
  204.   chip which has problems with some software.
  205.  
  206.   
  207.   11.2.  What do I do for my ill computer?
  208.   
  209.   At times, every computer must be serviced.  As the parts supply of Commodore
  210.   equipment dwindles, servicing becomes harder.  However, there are many
  211.   sources in Section 16.2 that can service your Commodore machine, and here
  212.   are some things you can do to service it yourself.
  213.   
  214.   If the screen is garbled, but BASIC seems to be limping along, and any
  215.   command is met by an error, RAM could be bad.  You can look at bit 
  216.   patterns on the screen by determining screen codes for  garbage characters.
  217.   only bit 4 (32) should be on.  After you determine which bits, here is the
  218.   bit->IC mapping:
  219.        
  220.   Bit 7 (128) : U12
  221.   Bit 6 (64)  : U24
  222.   Bit 5 (32)  : U11
  223.   Bit 4 (16)  : U23
  224.   Bit 3 (8)   : U10
  225.   Bit 2 (4)   : U22
  226.   Bit 1 (2)   : U9
  227.   Bit 0 (1)   : U21
  228.  
  229.   A common problem with the C-64 is it's power supply.  The C64 power
  230.   supplies are not especially powerful, and have this disturbing tendency to
  231.   fail.  If your computer stops working, first check the power supply.
  232.   Replacement power supplies can be obtained from a number of mail order
  233.   places (e.g. Tenex, Parsec, Inc.).  Additionally, several places advertise
  234.   "heavy-duty" power supplies that come with warranties, and give the C64
  235.   enough power to run a REU.
  236.  
  237.   If your power supply goes, it can sometimes take other parts of the
  238.   computer with it.  If your power supply has died, but the C64 continues
  239.   to fail with a known working power supply, it is likely that a few of your
  240.   chips got fried.
  241.  
  242.   Also, another common problem with the C64 is the fuse inside the computer.
  243.   If the system power on light comes on, but you get a blank screen, suspect
  244.   the fuse.  It is usually blown by misinsertion of devices into the computer.
  245.  
  246.  
  247.   11.2.2.  What do I do for my ill Commodore 128?
  248.  
  249.   Like the 1571, the C-128 has an older ROM and a newer ROM.  The differences
  250.   between the two are less serious than is the case with a 1571.  The easiest
  251.   way to tell the difference is to click down the CAPS LOCK key and hit Q
  252.   while in BASIC direct mode.  If you see a lower case q, then you have an
  253.   older ROM.  If you see an upper case Q, then you have a newer ROM.  New ROMs
  254.   can be ordered from (e.g. the Grapevine Group) for about $25.  The ROM chips
  255.   in the 128 are all socketed, so replacing the chips is relatively easy.
  256.  
  257.   
  258.   11.3.  What do I do for my ill keyboard?
  259.   
  260.     Clean it:
  261.  
  262.     Materials you will need:
  263.  
  264.     Denatured (rubbing) alcohol, a clean pencil eraser, cotton swabs, a small
  265.     Phillips head screwdriver, a jewellers size Phillips screwdriver, a
  266.     solder iron of some type, and a Commodore 64 computer keyboard.
  267.  
  268.     Procedure:
  269.  
  270.     1. FIRST AND FOREMOST. Make certain that you have discharged any static
  271.        electricity in your body by grounding yourself to something like a cold
  272.        water pipe. Otherwise, you could blow chips in your computer if you
  273.        were to touch the wrong things.
  274.  
  275.     2. Turn off your computer and unplug any and all cords and connectors,
  276.        fast-loaders, modems, etc. (just have yourself a naked (if you will
  277.        excuse the expression) computer).
  278.  
  279.     3. Thoroughly clean all external connectors and ports with the swabs and
  280.        alcohol. Also, clean all plugs that go into those ports. If the problem
  281.        you had persists, proceed with the following:
  282.  
  283.     4. On a clean surface, turn your key-board upside-down. Remove the screws
  284.        in the bottom.
  285.  
  286.     5. CAREFULLY, separate the two halves about an inch. Unplug the connector
  287.        to the "power" LED on the top of the C-64.
  288.  
  289.     6. Place the two halves flat so that the keyboard is facing  you. The two
  290.        halves will be connected by a wire harness. This harness may be held
  291.        down by tape that must be removed in order to place the unit flat.
  292.  
  293.     7. Remove the 15 or so brass screws that hold the  circuit  board  under
  294.        the keyboard.
  295.        
  296.     7a.Unsolder the wires going to the shift-lock key.
  297.  
  298.     8. Turn the circuit board over. You will see the bottom of the keyboard
  299.        with a rubber "U" under each key, which makes contact with the board.
  300.        You will also see on the circuit board, a pair of gold contacts for
  301.        each key on the C-64.
  302.  
  303.     9. CAREFULLY wash ALL the rubber "U"'s and the gold contacts with the
  304.        swabs and rubbing alcohol. Allow the alcohol to DRY.
  305.  
  306.     10.Gently, clean each gold contact with the eraser. BRUSH AWAY THE ERASER
  307.        CRUMBS (I use  a  small  hand-held, battery-powered vacuum cleaner).
  308.  
  309.     11.Re-clean the gold contacts with the swabs and alcohol to ensure that
  310.        you have removed ALL traces of the eraser.
  311.  
  312.     12.Reassemble the C-64 in the reverse order of disassembly.
  313.  
  314.  
  315.   12.  Modifications and Cabling
  316.   
  317.   As time wears on, many Commodore owners are turning to themselves to
  318.   manufacture small interfaces, modify their systems, and perform other
  319.   enhancements.  Here are some common things the user can construct
  320.   himself or herself.
  321.   
  322.    
  323.   12.1.  How can you alter which side a 1571 reads from?
  324.   
  325.   On a 128, you can force the 1571 to go into single sided mode with the drive
  326.   command "u0>m0".  (Issue such a command with open15,8,15,"u0>m0":close15.)
  327.   On the 64, a 1571 defaults to single sided mode, but you can convert it to
  328.   double sided mode (and read full double sided disk in 64 mode) with the
  329.   drive command "u0>m1".  While in single sided mode, you can actually format
  330.   both sides of the disk as separate file systems.  The command "u0>h0"
  331.   selects the regular side of the disk, and "u0>h1" selects the flip side of
  332.   the disk.  Note that the flip side, when formatted this way, cannot be read
  333.   by a 1541; neither side will be readable by a 1571 when the disk is
  334.   inserted upside-down.
  335.  
  336.   
  337.   12.2.  How do I open a C128 power supply?
  338.  
  339.   First, unplug both leads running from the power supply and turn it upside
  340.   down.  Locate four (4) small circles in the bottom; two are in the corners 
  341.   and two in the other end a bit nearer each other.
  342.  
  343.   Find some sharp tool, e.g. pin or nail.  In turn, poke it inside each of 
  344.   the cirles, firmly, and pull the caps off gently. They'll come out easily. 
  345.   Breaking the caps should not matter, but there is no need to destroy the 
  346.   casing in process.
  347.  
  348.   Unsrew the 4 Phillips headed srews with an appropriate tool.
  349.  
  350.   Notes: 
  351.   
  352.   This does not apply to the C64 brick!
  353.   
  354.   Some 128 power supplies do not have rubber feet; rather, they have "L"-
  355.   shaped extensions on the casing.  The caps on these extensions are not
  356.   made of rubber, but can be removed.
  357.  
  358.  
  359.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  360.   
  361.   Here is the diagram used to make a replacement Chroma / Luminence 40
  362.   column cable, that the 1902A uses, to connect to the 64 or 128.  
  363.  
  364.         _______                             ________
  365.       /    3    \      1.  Not Used        /    2    \    *1. Luminance
  366.      / 2       4 \    *2.  Audio          / 4      5  \   *2. Ground  
  367.     !             !   *3.  Ground        !             !  *3. Audio out
  368.     !      6      !   *4.  Chroma        ! 1    6    3 !   4. Video out
  369.     !             !    5.  Not Used      !             !   5. Audio in
  370.      \ 1       5 /    *6.  Luminance      \  7     8  /   *6. Chroma
  371.       \____n____/                          \____n____/     7. Not used
  372.                                                            8. Not used
  373.          1902A                                64/128
  374.                             * Actually used
  375.  
  376.  
  377.   12.4.  How do I build a simple RS-232 interface cable?
  378.   
  379.   Here are a couple of different interface ideas, and another can be found
  380.   at ftp://ftp.funet.fi/pub/CBM/documents/rs232.txt
  381.  
  382.   Using MAX-232 IC:
  383.     
  384.   Userport C64                                           C64 RS232
  385.                           _________
  386.                          |         |
  387.       PA2 M-----------11-|         |-14------------------- TXD (2)
  388.       PB1 D-----------10-|         |--7------------------- RTS (4)
  389.       PB6 K-----------12-| MAX 232 |-13------------------- CTS (5)
  390.     FLAG2 B---X--------9-|         |--8------------------- RXD (3)
  391.       PB0 C---|          |         |--3--|+-|
  392.       VCC 2-----------16-|         |--1-----|              DB25-connector
  393.       GND N------X----15-|         |
  394.                  X--|+-2-|         |--5--|+-|
  395.                  X--+|-6-|_________|--4-----|
  396.                  |
  397.                  |---------------------------------------- GND (7)
  398.  
  399.    -|+- capacitor 22uF/16V
  400.    -  +
  401.  
  402.   Using Transistors:
  403.  
  404.                           RS-232 interface
  405.                       <Transistors are 2n2222>
  406.   <24 pin edge connector>
  407.   N <-----------------------+-----------+
  408.                            /            !
  409.           22k         !-!>+             !
  410.   M <----/\/\/--------!                 !
  411.                       !---+             !
  412.           1k               \            !  <male db25 connector>
  413.   2 <----/\/\/--------------+------------>-------------------> 2
  414.                                         !
  415.                       +-----------------+
  416.                        \
  417.                         +<!-!                22k
  418.                             !---------------/\/\/------------> 8
  419.                         +---!
  420.                        /
  421.   H <-----------------+
  422.  
  423.   E <--------------------------------------------------------> 20
  424.  
  425.   C <---+
  426.         !
  427.   B <---+-------------+
  428.                        \
  429.                         +---!                22k
  430.                             !---------------/\/\/------------> 3
  431.                         +<!-!
  432.                        / 
  433.   A <-----------------+--------------------------------+-----> 7
  434.                                                        !
  435.                                                        +-----> 4
  436.                                                        !
  437.                                                        +-----> 1
  438.  
  439.  
  440.   If you are having problems with this circuit as it stands, you may wish
  441.   to modify it in this way to reverse the clock signal:
  442.   
  443.   Disconnect the emitter and collector on the middle transistor of the 
  444.   diagram (the one that goes to the H line on the computer side)
  445.   Connect the collector to pin 2 on the 24 pin edge connector (the 5v Vcc 
  446.   line), connect the emitter to pin H on the same connector, then connect a 
  447.   1k ohm resistor to the same pin H and the other end of the resistor to pin N
  448.   or A. 
  449.   
  450.  
  451.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  452.   
  453.   A new programming technique makes it possible to acheive 9600 bps on an
  454.   unexpected Commodore 64 without the use of a Swiftlink cartridge.  
  455.   Daniel Dallmann of Germany is the originator of this technique and is
  456.   currently writing modem drivers for some of the popular C64 terminal
  457.   emulation programs to take advantage of this new technique.
  458.   
  459.   The interface described below is a little more complex than the one
  460.   in Section 12.4, but has many advantages:
  461.  
  462.   * The interface generates proper EIA232 (RS-232) voltage levels.  
  463.     The one in Section 12.4 relies on the ability of most newer RS232
  464.     equipment to handle lower voltages.
  465.     
  466.   * The following interface can be used as a direct replacement for the
  467.     interface in Section 12.4, and will work will all existing 
  468.     telecommunications programs at up to 2400 bps, while providing the
  469.     necessary interfacing to allow suitably equipped applications to
  470.     operate at up to 9600 bps.
  471.     
  472.   * if you currently own a normal RS232 interface, that interface can be
  473.     modified to incorporate the new interfacing for 9600 bps operation.   
  474.     (in some cases one line of the old interface has to be disconnected,
  475.      see note **1 )
  476.  
  477.   9600 bps is the maximum limit this type of technique due to the timing
  478.   limitations of the C64.  The delay between the activation of the NMI-handler
  479.   and the falling edge of rxd is too long.  The handler must be called in 
  480.   less than 100 cycles.  That's no problem at 9600 bps, but for 19200 baud 
  481.   (the next higher baud rate), you have only 50 cycles, and that's impossoble 
  482.   (because of VIC-DMA ).  On a C128 in fast mode 38400 baud may be possible,
  483.   but I don't have a C128, so someone else has to try it out.
  484.  
  485.  
  486.               Schematic of a very simple RS232-Interface:
  487.   
  488.   
  489.     userport                       MAX232         rs232   9pin  25pin
  490.                                 +----------+
  491.                                 !          !
  492.   (C)    pb0--+                 !          !
  493.               !                 !    /!    !
  494.   (B)  flag2--*--------------------O< !---------  rxd     2      3
  495.               !                9!    \!    !8
  496.   *7*    sp2--+                 !          !
  497.                                 !          !
  498.   *6*   cnt2--+                 !          !
  499.               !                 !          !
  500.   *L*    pb7--+ <NOTE **1!>     !          !
  501.                                 !  !\      !
  502.   (M)    pa2--*--------------------! >O---------  txd     3      2
  503.               !               11!  !/      !14
  504.   *5*    sp1--+                 !          !
  505.                   74ls00        !          !
  506.                   +-----+       !          !
  507.                   !     !       !  !\      !
  508.   (D)    pb1-*------>O-------------! >O---------  rts     7      4
  509.              !   1!     !3    10!  !/      !7
  510.              +----!     !       !          !
  511.                  2!     !       !    /!    !
  512.   (K)    pb6--------O<-----*-------O< !---------  cts     8      5
  513.                  6!     !4 !  12!    \!    !13
  514.                   !     !--+    !          !
  515.   (1)    gnd------!     !5      !          !---   gnd     5      7
  516.                  7!     !       !          !15
  517.   (2)    +5V------!     !       !          !     (dsr     6      6)
  518.                 14+-----+       !          !
  519.                                 !          !     (dcd     1      8)
  520.                                 !          !
  521.                                 !          !     (dtr     4     20)
  522.                         ! !+    !          !
  523.   (1)    gnd------------! !-----!          !     (ri      9     22)
  524.                         ! !    2!          !
  525.                                 !          !
  526.                        +! !     !          !
  527.   (1)    gnd------------! !-----!          !
  528.                         ! !    6!          !
  529.                                 !          !
  530.                         ! !+    !          !
  531.                       +-! !-----!          !
  532.                       ! ! !    1!          !
  533.                       !         !          !
  534.                       +---------!          !
  535.                                3!          !
  536.                         ! !+    !          !
  537.                       +-! !-----!          !
  538.                       ! ! !    4!          !
  539.                       !         !          !
  540.                       +---------!          !
  541.                                5!          !
  542.                                 !          !
  543.   (1)    gnd--------------------!          !
  544.                               15!          !
  545.                                 !          !
  546.   (2)    +5V--------------------!          !
  547.                               16+----------+
  548.  
  549.   (x) - connections required for a normal RS232-Interface.
  550.   *x* - additional connections to go up to 9600 baud.
  551.  
  552.   remark: The MAX232 needs 4 capacitors (22uF each)
  553.           to generate +/- 10volts signals.
  554.  
  555.   notes :
  556.   
  557.      **1 Some other interfaces use this pin.  In that case you have to cut 
  558.          the connection and change it to new way.  PB7 is normally used to 
  559.          receive the DSR (Data Set Ready) signal from the modem, but this 
  560.          signal isn't supported by all terminal programs.  Because of the new 
  561.          wiring DSR will seem to be active to all 'old' programs, so that 
  562.          there won't be any troubles.
  563.  
  564.  
  565.      Top view of the used ICs:
  566.   
  567.           74 LS 00                    MAX232
  568.           +------+                   +------+
  569.      inA -!1 \/14!- vcc       +cap1 -!1 \/16!- Vcc
  570.      inA -!      !-  inC      +cap2 -!      !- GND
  571.     outA -!      !-  inC      -cap1 -!      !- RS232/txd
  572.      inB -!      !- outC      +cap3 -!      !- RS232/cts
  573.      inB -!      !-  inD      -cap3 -!      !- TTL/^cts
  574.     outB -!      !-  inD      -cap4 -!      !- TTL/txd
  575.      gnd -!7    8!- outD  RS232/rts -!      !- TTL/^rts
  576.           +------+        RS232/rxd -!8    9!- TTL/rxd
  577.                                      +------+
  578.           4 X NAND
  579.                                      2 X RS232 transmitter
  580.                                      2 X RS232 receiver
  581.  
  582.         user port (view on C64s backside)
  583.  
  584.        1  2  3  4  5  6  7  8  9 10 11 12   (top)
  585.       ------------------------------------
  586.        A  B  C  D  E  F  H  J  K  L  M  N   (bottom)
  587.   
  588.           1 - GND       A - GND
  589.           2 - +5V       B - ^flag2
  590.           3 - ^reset    C - pb0
  591.           4 - cnt1      D - pb1
  592.           5 - sp1       E - pb2
  593.           6 - cnt2      F - pb3
  594.           7 - sp2       H - pb4
  595.           8 - ^pc2      J - pb5
  596.           9 - atn in    K - pb6
  597.           10- 9V AC     L - pb7
  598.           11- 9V AC     M - pa2
  599.           12- GND       N - GND
  600.  
  601.  
  602.   12.6.  How can I determine how much VDC video memory is in my C128?
  603.  
  604.   Here are two ways to detect whether the C128 VDC chip has 16kB or 64kB
  605.   of RAM. 
  606.  
  607.   1 rem fred's nifty program to determine size of 8563 dram
  608.   5 w=dec("cdcc"):r=dec("cdda")
  609.   10 bank15: ad=dec("d600"): da=ad+1 :rem setup ml
  610.   20 pokead,28: s=peek(da): pokeda,63 :rem select 64k
  611.   30 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,85,31 :rem write $55
  612.   40 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc1 :rem read here
  613.   50 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc2 :rem and here
  614.   60 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,170,31 :rem write $aa
  615.   70 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc3 :rem read here
  616.   80 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc4 :rem and here
  617.   90 pokead,28: pokeda,s:sysdec("ff62") :rem restore 16/64k
  618.   95 print chr$(14)chr$(147)
  619.   100 if c1=c2 and c3=c4 then print "16K": else print"64K"  :rem did it echo? 
  620.   110 end
  621.  
  622.   or:
  623.  
  624.   POKE DEC("D600"),28:POKE DEC("D601"),63:SYS DEC("FF62"):SCNCLR
  625.  
  626.   If you have 16k the screen will fill with zeros; 64k will give you a 
  627.   ready prompt.
  628.  
  629.  
  630.   12.7.  How can I convert my C64 to run on battery power?
  631.  
  632.   The July, 1990 issue of 73 Amateur Radio has an article on converting
  633.   the C64 and 1541 to run on DC power. I'll summarize the C64 portion:
  634.  
  635.   DC Power Conversion for the C64
  636.  
  637.   1. Locate component CR4 on the circuit board. Mark the positive hole on
  638.      the board. Desolder and remove the component.
  639.      
  640.   2. Rest :-)
  641.  
  642.   3. Connect the marked hole to +12V.
  643.  
  644.   4. Desolder and remove VR1. Looking down at the component side of the
  645.      board, connect a wire from the vacant right hand hole and run it to
  646.      +12V.
  647.  
  648.   5. Locate L5. It will probably be in one of two locations. On the older
  649.      version, desolder the right hand leg and lift. On the newer version,
  650.      desolder the top leg and lift.
  651.  
  652.   6. Connect +5V to the empty L5 hole.
  653.  
  654.   7. Locate the R37 and R100 pads. Use a continuity meter to find the pads
  655.      that are connected. Desolder and lift these legs. You will insert a
  656.      60 Hz clock here.
  657.  
  658.   8. You could generate this clock using a variety of methods. Here's one:
  659.                                   +12V
  660.           __________________________|
  661.           |                         |
  662.           | C1    R1          ______|_______
  663.           |-)|-+-/\/\/-+-----|6     8       |
  664.           |    |       \     |              |
  665.           |   XTAL1    / R2  |    MM5369    |
  666.           |    |       \     |              |
  667.           |-)|-+-------+-----|5            1|---> 60 Hz (to R37 pad)
  668.             C2               |      2       |
  669.                               ---------------
  670.                                     |
  671.                                    GND
  672.  
  673.   C1 = 30 pF
  674.   C2 = 3-15 pF (variable)
  675.   XTAL1 = 3.57 MHz crystal
  676.   R1 = 1k
  677.   R2 = 10M
  678.  
  679.   It is suggested that you use a short length of shielded coax cable to
  680.   connect the 60 Hz output to the R37/R100 pad.
  681.  
  682.   Also, it is suggested that you use a frequency counter to tune the above
  683.   circuit to exactly 60 Hz.
  684.  
  685.   This conversion would work well if you wanted to use the C64 in a car or powered
  686.   by a solar set-up.
  687.  
  688.  
  689.   12.7.  How do I build a GEOCable interface?
  690.   
  691.   The interface is simply a cable between the printer and the user port.  
  692.   The pinout is as follows:
  693.   
  694.   pin on 64        pin on printer
  695.   
  696.   a  Ground        33  Grond
  697.   b  Flag 2        11  Busy
  698.   c  PB0            2  Data 1
  699.   d  PB1            3  Data 2
  700.   e  PB2            4  Data 3
  701.   f  PB3            5  Data 4
  702.   h  PB4            6  Data 5
  703.   j  PB5            7  Data 6
  704.   k  PB6            8  Data 7
  705.   l  PB7            9  Data 8
  706.   m  PA2            1  Strobe
  707.   n  Ground        16  Ground
  708.  
  709.   Superscript uses the same cable, but has the following change:
  710.  
  711.   b  Flag 2        10  Acknowledge
  712.  
  713.   Either wiring will work with either program, but the GEOCable wiring
  714.   is preferred.
  715.   
  716.   
  717. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  718.  
  719. + Look for the plans for the interface at:
  720.  
  721. + http://www.coast.net/simtel/msdos/info/c64topc.zip
  722.   
  723.  
  724. -- 
  725. Jim Brain, Embedded Systems Designer, Brain Innovations, Inc.  (BII)
  726. brain@mail.msen.com "Above views DO reflect my employer, since I'm my employer"
  727. Dabbling in WWW, Embedded Systems, VR, Old CBM computers, and Good Times! -Me-
  728. <a href=http://www.msen.com/~brain/>BII, VR, CBM, and personal info</a>
  729.